package com.entity;


import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.FieldStrategy;
import com.baomidou.mybatisplus.enums.IdType;
import lombok.Data;

import java.util.Date;


/**
 * 评论实体类
 */

@Data
@TableName("comment")
public class CommentEntity {
    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    private Long id;


    private Long courseId;
    private Long userId;

    private String name;
    private String userAvatar;

    private String content;
    private String image;
    private Integer rating;
    private Date commentTime;

    @TableField(exist = false)
    private String  courseTitle;

    @TableField(exist = false)
    private String coverImageUrl;
}
